<?php
namespace app\home\model;
use think\Model;

class CourseValueModel extends Model
{
	protected $table  = 'qm_course_value';


	//课程-规格值的列表
	public function getCourseValueList($key_id)
	{
		$list = $this->where('key_id', $key_id)->order('id')->select();
		if(!empty($list))
		{
			$list = $list->toArray();
		} 
		return $list;
	}



	//课程-规格值的列集合
	public function getCourseValueListColumn($key_id)
	{
		$list = $this->where('key_id', $key_id)->order('id')->column('name');
		return $list;
	}

}